package com.yinhai.mycat_test.service.read.impl;

import com.yinhai.mycat_test.VO.UserVO;
import com.yinhai.mycat_test.entity.User;
import com.yinhai.mycat_test.mapper.read.UserReadMapper;
import com.yinhai.mycat_test.service.read.UserReadService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class UserReadServiceImpl implements UserReadService {
    @Resource
    UserReadMapper userReadMapper;

    @Override
    public User queryOneUser(String userId) {
        return userReadMapper.queryOneUser(userId);
    }

    @Override
    public UserVO queryUserAndIDCard(String userId) {
        return userReadMapper.queryUserAndIDCard(userId);
    }

    @Override
    public List<User> queryAllUser() {
        return userReadMapper.queryAllUser();
    }

    @Override
    public List<User> queryUserByGender(String gender) {
        return userReadMapper.queryUserByGender(gender);
    }

    @Override
    public List<User> queryUserIdLike01(String userId) {
        return userReadMapper.queryUserIdLike01(userId);
    }

    @Override
    public List<User> queryUserNameLike02(String name) {
        return userReadMapper.queryUserNameLike02(name);
    }

    @Override
    public Integer queryUserCount() {
        return userReadMapper.queryUserCount();
    }



}
